package org.kailu.book.service;

import java.util.List;

import org.kailu.book.DAO.ExportDAO;
import org.kailu.book.entity.ExportEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ExportService {
	
	@Autowired
	private ExportDAO exportDAO;
	
	@Transactional
	public void save(ExportEntity exportEntity) {
		this.exportDAO.save(exportEntity);
	}
	
	@Transactional
	public List<ExportEntity> getAll() {
		return this.exportDAO.getAll();
	}
	
	@Transactional
	public List<ExportEntity> getAllUnverify() {
		return this.exportDAO.getAllUnverify();
	}
	
	@Transactional
	public ExportEntity get(int id) {
		return this.exportDAO.get(id);
	}
	
	@Transactional
	public void delete(int id) {
		this.exportDAO.delete(id);
	}
	

}
